﻿namespace WMS6.Web.CrossdockServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, DataContract(Name="OppOrderRuleDetailInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class OppOrderRuleDetailInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private int LineIDField;
        [OptionalField]
        private string OppOrderRuleIDField;
        [OptionalField]
        private string OppOrderStrategyField;
        [OptionalField]
        private int OrderDateEndDaysField;
        [OptionalField]
        private int OrderDateStartDaysField;
        [OptionalField]
        private string OrderTypeIncludeField;
        [OptionalField]
        private string PriorityFromField;
        [OptionalField]
        private string PriorityToField;
        [OptionalField]
        private int ReqShipDateEndDaysField;
        [OptionalField]
        private int ReqShipDateStartDaysField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    this.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public int LineID
        {
            get
            {
                return this.LineIDField;
            }
            set
            {
                if (!this.LineIDField.Equals(value))
                {
                    this.LineIDField = value;
                    this.RaisePropertyChanged("LineID");
                }
            }
        }

        [DataMember]
        public string OppOrderRuleID
        {
            get
            {
                return this.OppOrderRuleIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OppOrderRuleIDField, value))
                {
                    this.OppOrderRuleIDField = value;
                    this.RaisePropertyChanged("OppOrderRuleID");
                }
            }
        }

        [DataMember]
        public string OppOrderStrategy
        {
            get
            {
                return this.OppOrderStrategyField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OppOrderStrategyField, value))
                {
                    this.OppOrderStrategyField = value;
                    this.RaisePropertyChanged("OppOrderStrategy");
                }
            }
        }

        [DataMember]
        public int OrderDateEndDays
        {
            get
            {
                return this.OrderDateEndDaysField;
            }
            set
            {
                if (!this.OrderDateEndDaysField.Equals(value))
                {
                    this.OrderDateEndDaysField = value;
                    this.RaisePropertyChanged("OrderDateEndDays");
                }
            }
        }

        [DataMember]
        public int OrderDateStartDays
        {
            get
            {
                return this.OrderDateStartDaysField;
            }
            set
            {
                if (!this.OrderDateStartDaysField.Equals(value))
                {
                    this.OrderDateStartDaysField = value;
                    this.RaisePropertyChanged("OrderDateStartDays");
                }
            }
        }

        [DataMember]
        public string OrderTypeInclude
        {
            get
            {
                return this.OrderTypeIncludeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OrderTypeIncludeField, value))
                {
                    this.OrderTypeIncludeField = value;
                    this.RaisePropertyChanged("OrderTypeInclude");
                }
            }
        }

        [DataMember]
        public string PriorityFrom
        {
            get
            {
                return this.PriorityFromField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PriorityFromField, value))
                {
                    this.PriorityFromField = value;
                    this.RaisePropertyChanged("PriorityFrom");
                }
            }
        }

        [DataMember]
        public string PriorityTo
        {
            get
            {
                return this.PriorityToField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PriorityToField, value))
                {
                    this.PriorityToField = value;
                    this.RaisePropertyChanged("PriorityTo");
                }
            }
        }

        [DataMember]
        public int ReqShipDateEndDays
        {
            get
            {
                return this.ReqShipDateEndDaysField;
            }
            set
            {
                if (!this.ReqShipDateEndDaysField.Equals(value))
                {
                    this.ReqShipDateEndDaysField = value;
                    this.RaisePropertyChanged("ReqShipDateEndDays");
                }
            }
        }

        [DataMember]
        public int ReqShipDateStartDays
        {
            get
            {
                return this.ReqShipDateStartDaysField;
            }
            set
            {
                if (!this.ReqShipDateStartDaysField.Equals(value))
                {
                    this.ReqShipDateStartDaysField = value;
                    this.RaisePropertyChanged("ReqShipDateStartDays");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

